package com.guoning.office_system.service;

import com.guoning.office_system.model.User;
import com.guoning.office_system.vo.Criteria;
import com.guoning.office_system.vo.PageBean;

import java.util.List;
import java.util.Map;

public interface UserService {
    Long selectUserCount();

    List<User> selectAllUser(User user);

    List<User> selectAll();

    User selectUserForLogin(User user);

    PageBean selectByCondition(Criteria criteria, PageBean pageBean);

    List<User> selectByConditionForExport(Criteria criteria);

    PageBean selectAllUserNotHaveDepartment(Criteria criteria, PageBean pageBean);

    int deleteDepartment(List list);

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    Long selectByUser(User user);

    User selectByPrimaryKey(Long id);

    int updateByList(List<User> list);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User checkPassword(Long id);

    User selectUserByLoginName(String loginName);

    int updateLoginErrorNum(String loginName);
}